﻿#include "threaddatapro.h"
#include "math.h"
#include "QTime"
ThreadDataPro::ThreadDataPro(QObject *parent)
    : QThread(parent)
{



}
void ThreadDataPro::run(){
    while (RunFlag)
    {
        sleep(100);
    }

}

void ThreadDataPro::setDeviceMacs(QList<QString>macs){
    this->Macs=macs;
}

//从采集页面发送指令，控制flag们改变状态，将数据进行保存操作
void ThreadDataPro::getUserAndDevInfo(QString UserName,int deviceNo){


}


void ThreadDataPro::getData(char*buffer,int Len){

    emit sendbufferdata(buffer,Len);
}

void ThreadDataPro::SaveData(){

    emit sendSaveOver();

}




